import '../models/todo.dart';

abstract class TodoRepository {
  Future<List<Todo>> fetchTodos();
}

class MockTodoRepository implements TodoRepository {
  @override
  Future<List<Todo>> fetchTodos() async {
    await Future.delayed(const Duration(milliseconds: 600));
    return const [
      Todo(id: 1, title: 'Read docs'),
      Todo(id: 2, title: 'Build MVVM skeleton'),
      Todo(id: 3, title: 'Wire Riverpod providers'),
    ];
  }
}